package com.snj.visangedu.homestudy;

import java.util.ArrayList;

import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.util.Log;

import com.snj.visangedu.lib.CustomHttpClient;
import com.snj.visangedu.lib.Global;

public class AskItem {
	
	
	String no = "";
	String student = "";
	String ask_date = "";
	String ask_subject = "";
	String ask_content = "";
	
	String state = "";
	String teacher = "";
	String answer_date = "";
	
	
	ArrayList<Bitmap> arr_askimgs = null;
	ArrayList<Bitmap> arr_answerimgs = null;
	
	
	boolean isdrawn = false;
		
	public AskItem(String _no, String _student, String _ask_date, String _ask_subject, String _ask_content, String _teacher, String _answer_date, ArrayList<Bitmap> _arr_askimgs, ArrayList<Bitmap> _arr_answerimgs)
	{
		// TODO Auto-generated constructor stub
		
		this.no = _no;
		this.student = _student;
		this.ask_date = _ask_date;
		this.ask_subject = _ask_subject;
		this.ask_content = _ask_content;
		this.teacher = _teacher;
		this.answer_date = _answer_date;
		
		this.arr_askimgs = _arr_askimgs;
		this.arr_answerimgs = _arr_answerimgs;				
		
	}
	
	public AskItem(String _no, String _student, String _ask_date, String _ask_subject, String _ask_content, String _teacher, String _answer_date, String _state, ArrayList<Bitmap> _arr_askimgs, ArrayList<Bitmap> _arr_answerimgs)
	{
		// TODO Auto-generated constructor stub
		
		this.no = _no;
		this.student = _student;
		this.ask_date = _ask_date;
		this.ask_subject = _ask_subject;
		this.ask_content = _ask_content;
		this.teacher = _teacher;
		this.answer_date = _answer_date;
		this.state = _state;
		
		this.arr_askimgs = _arr_askimgs;
		this.arr_answerimgs = _arr_answerimgs;		
		
		
	}
	
	public String GetNo()
	{
		return this.no;
	}
	
	public String GetStudent()
	{
		return this.student;
	}
	
	public String GetAskDate()
	{
		return this.ask_date;
	}
	
	public String GetAskSubject()
	{
		return this.ask_subject;
	}
	
	public String GetAskContent()
	{
		return this.ask_content;
	}
	
	public String GetTeacher()
	{
		return this.teacher;
	}
	
	public String GetAnswerDate()
	{
		return this.answer_date;
	}
	
	public String GetState()
	{
		return this.state;
	}
	
	public ArrayList<Bitmap> GetAskImgs()
	{
		return arr_askimgs;
	}
	
	public ArrayList<Bitmap> GetAnswerImgs()
	{
		return arr_answerimgs;
	}
	
	public boolean GetDrawn()
	{
		return this.isdrawn;
	}
	
	public void ClearAnswer()
	{
		if(arr_answerimgs == null) arr_answerimgs = new ArrayList<Bitmap>();
		arr_answerimgs.clear();
	}
	
	public void AddAnswer(Bitmap bm)
	{
		if(arr_answerimgs == null) arr_answerimgs = new ArrayList<Bitmap>();
		arr_answerimgs.add(bm);
	}
}
